package com.itfreer.gis.dictionary;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Component;

import com.itfreer.form.dictionary.LocalDictionaryBase;
import com.itfreer.form.dictionary.base.DictionaryItem;
/**
 * 定义数据导入类型
 * @author cad或者shape
 *
 */
@Component
public class DataImportTypeDictionary extends LocalDictionaryBase {

	@Override
	public String getDictionaryName() {
		return "g_import_result_type";
	}
	
	@Override
	protected List<DictionaryItem> getDictionarys() {
		List<DictionaryItem> list = new ArrayList<DictionaryItem>();
		
		DictionaryItem item = new DictionaryItem();
		item.setId("0");
		item.setCode("0");
		item.setDisplay("失败");
		item.setOrder(1);
		list.add(item);
		
		item = new DictionaryItem();
		item.setId("1");
		item.setCode("1");
		item.setDisplay("成功");
		item.setOrder(2);
		list.add(item);
		return list;
	}
}
